<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //ES6 引入新的声明字符串的方式:[``] '' ""
        //1.声明 
        let str = `我也是一个字符串`;
        console.log(str, typeof str);

        //2.模板字符串可以直接出现换行符，单引号和双引号不行，不许用加号拼接换行
        let str1 = `<ul>
                       <li>黄渤</li>
                       <li>沈腾</li>
                       <li>艾伦</li>+
                       <li>魏翔</li>+
                    </ul>`
        
        //3.能够实现变量拼接
        let love = '魏翔';
        let out = `${love}是最搞笑的演员!!!`;
        console.log(out);
    </script>
   
</body>
</html>